import {Request, set_host} from '@ctsy/request'
import WS from '@ctsy/ws-rpc-client';
export const WSClient = new WS('ws://39.98.79.122:9000/ws/',Math.random().toString())
WSClient.create()
class Req extends Request{
    send(who:string,text:string){
        debugger
        return this.req.get(this.get_url('gsend')+'?x='+text+"&f="+who);
    }
}
set_host('http://39.98.79.122:9000/')
const ReqApi = new Req('Tcp')
export default ReqApi
// export WSClient;